package com.tedu.controller;
import com.tedu.pojo.Car;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController//接收浏览器发来的请求
@RequestMapping("/car")//按照指定的地址访问
public class CarController {
   @RequestMapping("/get")
    public String get(){
        System.out.println("控制台输出");
        return  "sdd";
    }
    @RequestMapping("/save")
    public  String save(){
        Car c = new Car();

        System.out.println(c.getColor());
        return "222";
    }
}
